<template>
  <!--404页面-->
  <div class="site-wrapper site-page--not-found">
    <div class="site-content__wrapper">
      <div class="site-content">
        <div class="not-found-icon"></div>
        <doc></doc>
        <p class="not-found-desc">很抱歉！您访问的页面无权限或不存在</p>
        <el-button class="not-found-btn not-found-btn-goback" @click="$router.go(-1)"
          >返回上页</el-button
        >
      </div>
    </div>
  </div>
</template>

<script>
import doc from '../../components/vue-office-doc.vue';
export default {
  components: { doc },
  methods: {
    rebackLogin() {
      this.$router.push('/');
      location.reload();
    },
  },
};
</script>

<style lang="scss">
.site-wrapper.site-page--not-found {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  background: #1c1c24;
  .site-content__wrapper {
    padding: 0;
    margin: 0;
    background-color: #fff;
  }
  .site-content {
    position: fixed;
    top: 20%;
    left: 50%;
    z-index: 2;
    padding: 30px;
    text-align: center;
    transform: translate(-50%, 0);
  }
  .not-found-icon {
    width: 28vw;
    height: 19vh;
    background: url('../../assets/image/icon/not-found-icon.png') left/ 100% 100% no-repeat;
  }
  .not-found-desc {
    margin: 0 0 30px;
    font-size: 0.9rem;
    text-transform: uppercase;
    color: #ffffff;
    /*> em {*/
    /*font-style: normal;*/
    /*color: #ee8145;*/
    /*}*/
  }
  .not-found-btn {
    width: 6vw !important;
    height: 3.2vh !important;
    line-height: 3.2vh !important;
    padding: 0 !important;
    color: #ffffff !important;
    border-radius: 0.2vw;
    border: 0;
    font-size: 1rem;
    cursor: pointer;
  }
  .not-found-btn-goback {
    background: #4453ff;
  }
  .not-found-btn-gohome {
    background: #7022ff;
  }
}
</style>
